﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using BlueMonkey.BlueCore;

namespace BlueMonkey.View
{
    /// <summary>
    /// Interaction logic for Logon.xaml
    /// </summary>
    public partial class Logon : Window
    {
        core.wpf.sqlserver sql = new core.wpf.sqlserver(Connextion.Server, Connextion.UserName, Connextion.Password, Connextion.Catalog);
        public Logon()
        {
            InitializeComponent();
            imgClose.Source = core.wpf.images.BitmapSource(Imagicon.softwaredemo.Close_Box_Red);
        }

        private void imgClose_PreviewMouseUp(object sender, MouseButtonEventArgs e)
        {
            this.Close();
        }

        private void stack1_PreviewMouseUp(object sender, MouseButtonEventArgs e)
        {
            try
            {
                System.Data.DataSet ds = sql.Retreive(@"SELECT * FROM [dbo].[DataSetting]");
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
    }
}
